<?php
include 'conn.php';
// 更新数据
$sql = "UPDATE users SET classID = 4 WHERE stuID = 4";
if ($conn->query($sql) === true) {
    echo "更新成功";
} else {
    echo "更新失败：" . $conn->error;
}
$conn->close();